//
//  RecordTaskTableViewCell.h
//  leo
//
//  Created by 常艳 on 15/10/2.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TaskRecordViewController.h"
#import "Task.h"
#define recordTask_tag  @"TaskRecordViewController--------------------"
@interface RecordTaskTableViewCell : UITableViewCell<AVAudioRecorderDelegate,AVAudioPlayerDelegate,AVAudioSessionDelegate>
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *descLable;
@property (weak, nonatomic) IBOutlet UILabel *empLable;
@property (weak, nonatomic) IBOutlet UILabel *statusLable;
@property (weak, nonatomic) IBOutlet UIImageView *statusImg;
@property (weak, nonatomic) IBOutlet UIButton *recordBtn;
@property (weak, nonatomic) IBOutlet UIImageView *recordImg;
@property (weak,nonatomic) IBOutlet UIButton *playBtn;
@property (weak, nonatomic) IBOutlet UILabel *timeLable;


@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@property (nonatomic,strong) Task *task;

@property(nonatomic,strong) TaskRecordViewController *recordView;
@property(nonatomic,strong)  UIWindow *alertView;
@property(nonatomic,strong)  UIWindow *keyWindow;
@property(nonatomic,assign) CGPoint previous;
@property(nonatomic,assign) BOOL isCancle;
@property(nonatomic,assign) BOOL isAdd;
@property(nonatomic,strong) NSTimer *timer;
@property(nonatomic,weak) UITableView *tb;
@property(nonatomic,assign) BOOL isPlay;
@property(nonatomic,strong) AVAudioPlayer *player;
@property(nonatomic,assign) BOOL canRecord;
-(void)initUI;
-(void)stop;
@end
